SOU = $(wildcard *.c)
OBJ = $(SOU:.c=.o)
BIN = code

CC = gcc
CFLAG = -o
RM = rm -f

$(BIN) : $(OBJ)
	$(CC) $(CFLAG) $@ $(^) -g
%.o : %.c
	$(CC) -c $<


PHONY:
clean :
	$(RM) $(OBJ) $(BIN)
